home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Applications / Batch Compiler / SpecFiles / QTools.bcs < prev    next >
Text File  |  2003-04-27  |  16KB  |  538 lines

  1. // Quake Tools Batch Compiler Spec file.
  2. // Written by: Ryan Gregg
  3. // Last updated: Mar 19, 2003
  4.  
  5. Setup = Q-Tools
  6. {
  7.   Author = Ryan Gregg
  8.   Program = Half-Life
  9.   Filter = Map Files (*.map)|*.map
  10.  
  11.   Layout: 
  12.   @echo off
  13.   set WADROOT=$BasePath
  14.   echo ###################################################
  15.   echo #            Batch Compiler QTools Spec           #
  16.   echo ###################################################
  17.   echo ###################################################
  18.   echo #  Please report bugs to: ryansgregg@hotmail.com  #
  19.   echo ###################################################
  20.   echo.
  21.   echo Written At: $DateTime
  22.   echo BC Version: $Version
  23.   echo.
  24.   "$ClassEXE=CSG" $ClassParam=CSG "$FilePath\$FileName.$FileExt"
  25.   "$ClassEXE=BSP" $ClassParam=BSP "$FilePath\$FileName.$FileExt"
  26.   "$ClassEXE=VIS" $ClassParam=VIS "$FilePath\$FileName.$FileExt"
  27.   "$ClassEXE=RAD" $ClassParam=RAD "$FilePath\$FileName.$FileExt"
  28.   $ClassParam=Batch
  29.   "$ClassEXE=HL" $ClassParam=HL
  30.   "$BCLV" "$FilePath\$FileName.log"
  31.   echo.
  32.   pause
  33. }
  34.  
  35. //
  36. // CSG
  37. //
  38. Group = CSG
  39. {
  40.   Name = Constructive Solid Geometry
  41.   RequireEXE = true
  42.   EXEFilter = QCSG (qcsg.exe)|qcsg.exe
  43.  
  44.   CheckBox = No WAD Textures
  45.   {
  46.     Param = -nowadtextures
  47.     Bold = true
  48.     Hint = Include all used textures into bsp.
  49.            This option is obsolete by -wadinclude and is only left in to retain some backwards compatibility.
  50.   }
  51.   CheckBox = Entities Only
  52.   {
  53.     Param = -onlyents
  54.     Hint = Do an entity update from .map to .bsp.
  55.            This option will take the entities from the .map file and update them into the bsp file. For the most part, entities can only be edited. Adding or removing any can reorder the other entities which frequently break brush based entities, especially triggers.
  56.   }
  57.   CheckBox = GL View
  58.   {
  59.     Param = -glview
  60.     Hint = Create <mapname>.gl file.
  61.            Creates a <mapname>.gl file, which contains the number of planes, the number of points in each plane, the points used to define each plane, and the total light on that plane.
  62.   }
  63.  
  64.   Spaces = 7
  65.  
  66.   EditBox = Additional Parameters
  67.   {
  68.     Type = string
  69.     Width = 3
  70.     Hint = Add additional parameters here as you would a command line.
  71.   }
  72. }
  73.  
  74. //
  75. // BSP
  76. //
  77. Group = BSP
  78. {
  79.   Name = Binary Space Partition
  80.   RequireEXE = true
  81.   EXEFilter = QBSP (qbps2.exe)|qbsp2.exe
  82.  
  83.   CheckBox = Leak Only
  84.   {
  85.     Param = -leakonly
  86.     Hint = Run BSP only enough to check for leaks.
  87.            If you already know a map has a leak, this is a good option to just save some time in hlbsp and just generate the pts file.
  88.   }
  89.   CheckBox = Not T-Junction
  90.   {
  91.     Param = -notjunc
  92.     Hint = Don't break edges on t-junctions (not for final runs).
  93.            This is a development/debugging option that should not be set in normal use.
  94.   }
  95.  
  96.   EditBox = Subdivide
  97.   {
  98.     Param = -subdivide
  99.     Type = Float
  100.     Default = 240
  101.     Min = 64
  102.     Max = 240
  103.     Hint = Sets the face subdivide size.
  104.            Faces in Half-life are subdivided by this value (in units). The default and maximum are both 240, and it should never need to be set lower (as it just increases r_speeds).
  105.   }
  106.   
  107.   Spaces = 7
  108.  
  109.   EditBox = Additional Parameters
  110.   {
  111.     Type = string
  112.     Width = 3
  113.     Hint = Add additional parameters here as you would a command line.
  114.   }
  115. }
  116.  
  117. //
  118. // VIS
  119. //
  120. Group = VIS
  121. {
  122.   Name = Visibility Index Set
  123.   RequireEXE = true
  124.   EXEFilter = VIS (vis.exe)|vis.exe
  125.  
  126.   CheckBox = Fast
  127.   {
  128.     Param = -fast
  129.     Bold = true
  130.     Hint = Fast vis.
  131.            A fast vis is handy for running around in a developed map without dropping polygons. However, r_speeds will usually be pretty bad, as well as epoly counts. The map can still be lit with hlrad, however its quality and compile time will both suffer as a result. Maps should regularly be compiled without fast vis, as fast vis can mask a sudden increase in normal vis compile time.
  132.   }
  133.  
  134.   Spaces = 9
  135.  
  136.   EditBox = Additional Parameters
  137.   {
  138.     Type = string
  139.     Width = 3
  140.     Hint = Add additional parameters here as you would a command line.
  141.   }
  142. }
  143.  
  144. //
  145. // RAD
  146. //
  147. Group = RAD
  148. {
  149.   Name = Radiosity
  150.   RequireEXE = true
  151.   EXEFilter = QRAD (qrad.exe)|qrad.exe
  152.  
  153.   CheckBox = Extra
  154.   {
  155.     Param = -extra
  156.     Bold = true
  157.     Hint = Turns on 9 point oversampling for lighting, making it look much better.
  158.   }
  159.   CheckBox = No Texture Scale
  160.   {
  161.     Param = -notexscale
  162.     Hint = Do not scale radiosity patches with texture scale.
  163.            By default, hlrad will take the texture scale and apply it to the chopping grid which is projected onto it. This option turns that off, and almost always increases the number of patches in a map as most maps have many walls scaled up to 2 and 3.
  164.   }
  165.   CheckBox = Dump Light Patches
  166.   {
  167.     Param = -dump
  168.     Hint = Dumps light patches to a file for hlrad debugging info This is a developer option for zhlt, to dump out the patch data generated by the chopping/subdividing and make sure it looks alright.
  169.   }
  170.   CheckBox = Incremental
  171.   {
  172.     Param = -inc
  173.     Hint = Use or create an incremental transfer list file.
  174.            This is a handy option for tweaking lighting, especially on slow or lower memory machines. BuildVisLeafs, MakeScales, and SwapTransfers can be skipped entirely on subsequent runs of hlrad. Note that geometry must not change, but lighting can.
  175.   }
  176.  
  177.   Spaces = 6
  178.  
  179.   EditBox = Additional Parameters
  180.   {
  181.     Type = string
  182.     Width = 3
  183.     Hint = Add additional parameters here as you would a command line.
  184.   }
  185.  
  186.   EditBox = Bounce
  187.   {
  188.     Param = -bounce
  189.     Bold = True
  190.     Type = Int
  191.     Default = 1
  192.     Min = 0
  193.     Hint = Set number of radiosity bounces.
  194.            This option sets the number of times light bounces in the radiosity pass. By the time the code gets to this point, all the data is precomputed, and extra bounces are very fast. It will make the shadows less harsh using more bounces, but can help light up dark areas much more naturally.
  195.   }
  196.   EditBox = Smooth
  197.   {
  198.     Param = -smooth
  199.     Bold = True
  200.     Type = Float
  201.     Default = 50
  202.     Min = 0
  203.     Max = 180
  204.     Hint = Set smoothing threshold for blending (in degrees).
  205.            By default hlrad uses Phong shading on all faces. If the angle between two edges is less than this value, it will be shaded with the Phong smoothing code, otherwise it won't.
  206.   }
  207.   EditBox = Chop
  208.   {
  209.     Param = -chop
  210.     Type = Float
  211.     Default = 64
  212.     Min = 1
  213.     Hint = Set radiosity patch size for normal textures.
  214.            Each face in the world has a grid projected onto it, and chopped up into a rather coarse set of sample points. These points are patches, and are what hlrad uses to do the bounced lighting calculations. A higher chop sacrifices quality for both speed and memory consumption of hlrad. A lower chop increases the quality at the expense of speed and memory usage.
  215.   }
  216.   EditBox = Coring
  217.   {
  218.     Param = -coring
  219.     Type = Float
  220.     Default = 1
  221.     Min = 0
  222.     Hint = Set lighting threshold before blackness on switchable light surfaces.
  223.            This value controls how much light it takes before a surface will be lit with a non-black value.
  224.   }
  225.   EditBox = Max Light
  226.   {
  227.     Param = -maxlight
  228.     Type = Float
  229.     Default = 2
  230.     Min = 0
  231.     Max = 2
  232.     Hint = Overexpose textures.
  233.            Allows for the overexposure of textures for more realistic lighting. Less than 2 produces duller lighting, but the textures don't "blow out" as much.
  234.   }
  235.   EditBox = Scale
  236.   {
  237.     Param = -scale
  238.     Type = Float
  239.     Default = 1
  240.     Min = 0
  241.     Hint = Set global light scaling value.
  242.            This option scales the final light values right after the direct lighting layer is added to the radiosity bounced lighting layer. Low values make the world darker, higher values make it brighter.
  243.   }
  244.   EditBox = Gamma
  245.   {
  246.     Param = -gamma
  247.     Type = Float
  248.     Default = 0.5
  249.     Min = 0
  250.     Hint = Set global gamma value.
  251.            This option also occurs after the direct and radiosity layers are added together, and a global gamma correction is calculated and applied to the lighting before it is finalized.
  252.   }
  253.   EditBox = Sky
  254.   {
  255.     Param = -sky
  256.     Type = Float
  257.     Default = 1
  258.     Min = 0
  259.     Hint = Set ambient sunlight contribution in the shade outside.
  260.            Many faces have line of sight to sky, but fall in the shadow of some other object. This option affects how much of the normal sky lighting is put into the shadows. A setting of '1' (the default) will result in a full hemisphere of the sky contributing about 1/4 of the direct component. Set to '0' for direct lighting only. Set to a value greater than '1' for a more diffuse (cloudy, overcast) sky appearance.
  261.   }
  262.  
  263.   Spaces = 3
  264.  
  265.   ComboBox = Messages
  266.   {
  267.     Default = Normal
  268.     Options = Terse,-terse|Normal,|Verbose,-verbose
  269.     Hint = Set the message mode to run QRAD in.
  270.            Terse runs with the minimum amount of information output during compiling, normal runs without any special messages and verbose runs with the maximum amount of information output during compiling. Many of the tools have 'minor warnings' and informative messages which are displayed when verbose mode is set. 
  271.   }
  272.  
  273.   ColorBox = Ambient Light
  274.   {
  275.     Param = -ambient
  276.     Default = 0 0 0
  277.     Hint = Set ambient world light.
  278.            This option sets a minimum light value to every face so that nothing comes out pitch black.
  279.   }
  280.  
  281.   BrowseBox = Lights File
  282.   {
  283.     Param = -lights
  284.     Type = File
  285.     Bold = true
  286.     Filter = Radiosity Files (*.rad)|*.rad|Text Files (*.txt)|*.txt
  287.     Hint = Manually specify a lights.rad file to use.
  288.            The .rad file will be used in addition to the defaults of lights.rad and mapname.rad.
  289.   }
  290. }
  291.  
  292. Group = Shared
  293. {
  294.   CheckBox = Verbose
  295.   {
  296.     Param = -v
  297.     Groups = CSG,BSP,VIS
  298.     Hint = Compile with verbose messages.
  299.            Many of the tools have 'minor warnings' and informative messages which are displayed when verbose mode is set.
  300.   }
  301.  
  302.   EditBox = Threads
  303.   {
  304.     Param = -threads
  305.     Groups = CSG,BSP,VIS,RAD
  306.     Type = Int
  307.     Default = 1
  308.     Min = 1
  309.     Hint = Manually specify the number of threads to run.
  310.            This option is generally only necessary on the non-windows versions of the tools, where there is not a standard way to detect the number of processors in the system and auto-set the value. It can be manually set on windows machines, primarily if you wish to use fewer threads than processors.
  311.   }
  312. }
  313.  
  314. //
  315. // Batch
  316. //
  317. Group = Batch
  318. {
  319.   Name = Batch File Options
  320.   RequireEXE = false
  321.  
  322.   LabelBox = Recommended File Deletions:
  323.  
  324.   CheckBox= Delete .WIC After Compile
  325.   {
  326.     BatchCommand = True
  327.     Param = del "$FilePath\$FileName.wic"
  328.     Param = echo $FilePath\$FileName.wic deleted.
  329.   }
  330.   CheckBox= Delete .LIN After Compile
  331.   {
  332.     BatchCommand = True
  333.     Param = del "$FilePath\$FileName.lin"
  334.     Param = echo $FilePath\$FileName.lin deleted.
  335.   }
  336.   CheckBox= Delete .P0 After Compile
  337.   {
  338.     BatchCommand = True
  339.     Param = del "$FilePath\$FileName.p0"
  340.     Param = echo $FilePath\$FileName.p0 deleted.
  341.   }
  342.   CheckBox= Delete .P1 After Compile
  343.   {
  344.     BatchCommand = True
  345.     Param = del "$FilePath\$FileName.p1"
  346.     Param = echo $FilePath\$FileName.p1 deleted.
  347.   }
  348.   CheckBox= Delete .P2 After Compile
  349.   {
  350.     BatchCommand = True
  351.     Param = del "$FilePath\$FileName.p2"
  352.     Param = echo $FilePath\$FileName.p2 deleted.
  353.   }
  354.   CheckBox= Delete .P3 After Compile
  355.   {
  356.     BatchCommand = True
  357.     Param = del "$FilePath\$FileName.p3"
  358.     Param = echo $FilePath\$FileName.p3 deleted.
  359.   }
  360.   CheckBox= Delete .PRT After Compile
  361.   {
  362.     BatchCommand = True
  363.     Param = del "$FilePath\$FileName.prt"
  364.     Param = echo $FilePath\$FileName.prt deleted.
  365.   }
  366.  
  367.   Spaces = 3
  368.   LabelBox = Recommended File Functions:
  369.  
  370.   CheckBox= Copy.BSP After Compile
  371.   {
  372.     BatchCommand = True
  373.     Param = copy "$FilePath\$FileName.bsp" "$FileDest"
  374.     Param = echo $FileName.bsp copied to $FileDest
  375.     Bold = True
  376.     Hint = Copy your .BSP file to your map destination folder.
  377.   }
  378.   CheckBox= Copy.PTS After Compile
  379.   {
  380.     BatchCommand = True
  381.     Param = copy "$FilePath\$FileName.pts" "$FileDest"
  382.     Param = echo $FileName.pts copied to $FileDest
  383.     Bold = True
  384.     Hint = Copy your .PTS file to your map destination folder.
  385.   }
  386.  
  387.   Spaces = 8
  388.   LabelBox = Unrecommended File Deletions:
  389.  
  390.   CheckBox= Delete .ERR After Compile
  391.   {
  392.     BatchCommand = True
  393.     Param = del "$FilePath\$FileName.err"
  394.     Param = echo $FilePath\$FileName.err deleted.
  395.     Hint = Note: If you delete this file you won't be able to see the compiler's error output.
  396.   }
  397.   CheckBox= Delete .LOG After Compile
  398.   {
  399.     BatchCommand = True
  400.     Param = del "$FilePath\$FileName.log"
  401.     Param = echo $FilePath\$FileName.log deleted.
  402.     Hint = Note: If you delete this file you won't be able to see the compiler's log file.
  403.   }
  404.   CheckBox= Delete .PTS After Compile
  405.   {
  406.     BatchCommand = True
  407.     Param = del "$FilePath\$FileName.pts"
  408.     Param = echo $FilePath\$FileName.pts deleted.
  409.     Hint = Note: If you delete this file without copying it you won't be able to use the compiler's pts file.
  410.   }
  411.   CheckBox= Delete .MAP After Compile
  412.   {
  413.     BatchCommand = True
  414.     Param = del "$FilePath\$FileName.map"
  415.     Param = echo $FilePath\$FileName.map deleted.
  416.   }
  417.   CheckBox= Delete .BSP After Compile
  418.   {
  419.     BatchCommand = True
  420.     Param = del "$FilePath\$FileName.bsp"
  421.     Param = echo $FilePath\$FileName.bsp deleted.
  422.     Hint = Note: If you delete this file without copying it you won't be able to play your map file.
  423.   }
  424. }
  425.  
  426. //
  427. // Half-Life
  428. //
  429. Group = HL
  430. {
  431.   Name = Half-Life
  432.   RequireEXE = true
  433.   EXEFilter = Half-Life (hl.exe)|hl.exe|Counter-Strike (cstrike.exe)|cstrike.exe
  434.  
  435.   CheckBox = Run Half-Life With Map
  436.   {
  437.     Param = +map $FileName
  438.     Bold = True
  439.     Hint = The map to start Half-Life with.
  440.   }
  441.   CheckBox = Enable Console
  442.   {
  443.     Param = -console
  444.     Bold = True
  445.     Hint = Start Half-Life with console enabled.
  446.   }
  447.   CheckBox = To Console
  448.   {
  449.     Param = -toconsole
  450.     Hint = Load Half-Life straight to console screen.
  451.   }
  452.   CheckBox = Developer
  453.   {
  454.     Param = -dev
  455.     Hint = Start Half-Life in developer mode (cheats).
  456.   }
  457.   CheckBox = No Intro
  458.   {
  459.     Param = -nointro
  460.     Hint = Skip starting intro.
  461.   }
  462.   CheckBox = Minimum Memory
  463.   {
  464.     Param = -minmemory
  465.     Hint = Start Half-Life with minimum memory.
  466.   }
  467.   CheckBox = Safe Mode
  468.   {
  469.     Param = -safe
  470.     Hint = Start Half-Life in safe mode (no acceleration).
  471.   }
  472.   CheckBox = No IP
  473.   {
  474.     Param = -noip
  475.     Hint = DonÆt let Half-Life try to connect to the internet.
  476.   }
  477.   CheckBox = No IPX
  478.   {
  479.     Param = -noipx
  480.     Hint = Disable IPX (recommended if you do not use IPX communication).
  481.   }
  482.   CheckBox = No Joystick
  483.   {
  484.     Param = -nojoy
  485.     Hint = Disable joystick initialization (saves a bit of memory).
  486.   }
  487.  
  488.   EditBox = Additional Parameters
  489.   {
  490.     Type = string
  491.     Width = 3
  492.     Hint = Add additional parameters here as you would a command line.
  493.   }
  494.  
  495.   CheckBox = Numeric Ping
  496.   {
  497.     Param = -numericping
  498.     Hint = Display server listing with ping times instead of Green dots.
  499.   }
  500.   EditBox = Heap Size
  501.   {
  502.     Param = -heapsize
  503.     Type = Int
  504.     Default = 65536
  505.     Min = 16384
  506.     Hint = The amount of memory to allocate for Half-Life.
  507.   }
  508.   EditBox = Game
  509.   {
  510.     Param = -game
  511.     Bold = True
  512.     Type = String
  513.     Default = cstrike
  514.     Hint = The MOD to start Half-Life in.
  515.   }
  516.   EditBox = Particles
  517.   {
  518.     Param = -particles
  519.     Type = Int
  520.     Default = 65536
  521.     Min = 1
  522.     Hint = The number of particles to search for leaks with.
  523.   }
  524.  
  525.   ComboBox = Render Mode
  526.   {
  527.     Default = Direct 3D
  528.     Options = Direct 3D,-d3d|Software,-soft|Open GL,-gl
  529.     Hint = Start Half-Life in the following rendermode.
  530.   }
  531.   ComboBox = Startup State
  532.   {
  533.     Default = Fullscreen
  534.     Options = Fullscreen,-full|Windowed,-win
  535.     Hint = Start Half-Life with the following window state.
  536.   }
  537. }
  538.